<?php
/**
 * @version        $Id: ajax_loginsta.php 1 8:38 2010年7月9日Z tianya $
 * @package        DedeCMS.Member
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
define('AJAXLOGIN', TRUE);

require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if($myurl == '') exit('');

$uid  = $cfg_ml->M_LoginID;

!$cfg_ml->fields['face'] && $face = ($cfg_ml->fields['sex'] == '女')? 'dfgirl' : 'dfboy';
$facepic = empty($face)? $cfg_ml->fields['face'] : $GLOBALS['cfg_memberurl'].'/templets/images/'.$face.'.png';
?>
<a href="<?php echo $cfg_memberurl; ?>/index.php"  target="_blank">
  <div class="user-vip-type"><span class="my-name"><?php echo $cfg_ml->M_UserName; ?></span></div>
  </a>
  <div class="user-infor-con" style="right:-120px;"><span class="triangle"></span>
    <dl class="clearfix">
      <dt class="fl"><a href="<?php echo $cfg_memberurl; ?>/index.php" target="_blank"><img src="<?php echo $facepic;?>" id="userhead" data-original="<?php echo $facepic;?>" alt="<?php echo $cfg_ml->M_UserName; ?>"></a></dt>
      <dd class="fl"><a href="<?php echo $cfg_memberurl; ?>/index.php" target="_blank"><span class="mine-name"><?php echo $cfg_ml->M_UserName; ?></span>（ID：<span><?php echo $cfg_ml->M_ID; ?></span>）</a></dd>
      <dd  class="fl Situation-vip"></dd>
    </dl>
    <div class="user-Entrance"><a href="/member/buy.php" onClick="fromtypeclick(1);" target="_blank">
      <div class="discount-vip"><i></i>开通VIP</div>
      </a><a href="/member/download.php"  target="_blank">
      <div class="mine-download"><i></i>我的下载</div>
      </a><a href="/member/stow.php"  target="_blank">
      <div class="mine-collect"><i></i>我的收藏</div>
      </a></div>
  </div>